

#ifndef SOCKETSERVER_H_
#define SOCKETSERVER_H_

int32_t CreaConexionServer_INET(int32_t puerto);

typedef struct nodo_socket {
	int32_t descriptor;
	struct nodo_socket *nxt;
} __attribute__((packed)) nodo_socket;

typedef struct list_sockets {
	nodo_socket *list;
} __attribute__((packed)) list_sockets;

void list_sockets_add(list_sockets * aList, int32_t aDescriptor);
int32_t list_sockets_exists(list_sockets * aList, int32_t descriptor); //-1 si no existe 0 si existe
int32_t list_sockets_delete(list_sockets * aList, int32_t descriptor);

#endif /* SOCKETSERVER_H_ */
